<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>已发送-邮件查看</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
    <script src="<%=path%>/js/oa.js" type="text/javascript"></script>
   	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
	
	<script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
	<style>
		.rname{width:800;height:70px;border:1px #aaa solid;overflow:scroll;background:#fefefe;}
		.menuitem {float:left;POSITION: absolute; VISIBILITY: hidden;width:860;}
		.menuitem1 {float:left;POSITION: static; VISIBILITY: visible;width:860;}
	</style>	
	<script type="text/javascript">
		$(function() {
			//设置全选,反选,清空按钮事件
			
			$("#del").click(function () {
				confirmDg('你确定此操作吗？', function(){
		       			javascript:window.location.href='<%=basePath%>/oa/mail_mailDele.action?ids=${mail.id }&num=${num}&size=${size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }'
				});
				
			});
			$("#del_shift").click(function () {
				confirmDg('删除后将不能再恢复，您确定删除以上选择吗？', function(){
			        javascript:window.location.href='<%=basePath%>/oa/mail_mailDrop.action?ids=${mail.id }&num=${num}&size=${size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=2'
				});
		
			});
			$("input[name='goback']").click(function() {	
				window.location.href='<%=basePath%>/oa/mail_mailList.action?num=${str_num}&size=${str_size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }';
			});
			
		});
		
	</script>
  </head>
  
  <body>
        <div class="body-box">
        <div class="map">
			<div class="map_con">
				您当前的位置：协同办公&gt; 邮件管理 &gt; 已发送 &gt;邮件查看
			</div>
		</div>
		
		<div id="container">
		<!-- <div class="link_top">
		<input type="button" class="link_input" value="返 回" onclick="window.location.href='<%=basePath%>/oa/mail_mailList.action?str_num=${str_num}&str_size=${str_size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }'"/>
		<input type="button" id="btnSubmit1" class="link_input" value="删 除" onclick="mail_operate('6','${mail.id }','<%=basePath%>','&str_num=${str_num}&str_size=${str_size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }');"/>
		<input name="bn1" type="button" id="btnSubmit2" value="彻底删除" class="link_input" id="cg1" onclick="mail_operate('7','${mail.id }','<%=basePath%>','&str_num=${str_num}&str_size=${str_size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }');"/>
		</div>
		 -->
	    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
				<tr>
					<td colspan="2" class="title_li">邮件查看</td>
				</tr>				
				<tr>				
					<td width="100" class="title_td">主题：</td>
					<td><STRONG>${mail.mailTitle }</STRONG></td>
				</tr>
				<tr>
					<td class="title_td">发件人：</td>
					<td >${mail.tbUser.userRealName }</td>
				</tr>				
				<tr>
					<td class="title_td">收件人：</td>
					<td >${arrayName }</td>
				</tr>				
				<tr>
					<td class="title_td">时间：</td>
					<td ><s:date name="mail.mailTime" format="yyyy年MM月dd日 HH:mm"/>（${mail.mailWeek }）</td>
				</tr>				
				<tr>
					<td class="title_td">紧急程度：</td>
					<td >${mail.isExigence==1?'<font color="red">紧急</font>':'普通' }</td>
				</tr>				
				<tr>
					<td class="title_td">附件：</td>
					<td id="more">						
						<s:iterator id="fj" value="fjList">
							<span id="fj_${fj.id}">${fj.fjTitle}(${fj.fjSize })&nbsp;&nbsp;<a href="<%=basePath%>/oa/mail_downLoad.action?id=${fj.id}" target="_blank">下载</a><br/></span>
						</s:iterator>
					</td>
				</tr>
				<tr>	
					<td class="title_td">内容：</td>
					<td style="line-height:normal;">
						${mail.mailContent }
					</td>
				</tr>											
			</table>
			<table border="0" cellspacing="0" cellpadding="0"  width="99%" style="float:left; padding-top:5px;padding-bottom:5px;background-color: #d0e2ff;">
				<tr>
					<td align="left">
						<input type="button" class="link_input" value="返 回" name="goback"/>
						<input type="button" name="del" value=" 删 除 " id="del" class="link_input">
						<input type="button" name="del_shift" value=" 彻底删除" id="del_shift" class="link_input">
					</td>
				</tr>
			</table>
		</div>
		<!-- 
	    <div class="right_bottom">
			<div style="width:11px;float:left"><img src="<%=basePath%>/images/right_bottom.gif"/></div>
			<div style="width:16px;float:right"><img src="<%=basePath%>/images/right_rbottom.gif"/></div>
		</div> -->
	  </div>
  </body>
</html>
